﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MasMembers.DAL;

namespace MasMembers.UTIL
{
    class DALUtil
    {
        public static FamilyEntity mapMemToFam(MemberBasicInfoEntity mem) {
            FamilyEntity family = new FamilyEntity();
            family.School = mem.m_Study;
            family.Educ = mem.m_Study;
            family.DOB = mem.m_DOB;
            family.F_Name = mem.m_Mem_Name;
            return family;
        }

        public static PartnerEntity mapMemToPart(MemberBasicInfoEntity mem) {
            PartnerEntity part = new PartnerEntity();
            part.DOB = mem.m_DOB;
            part.Education = mem.m_Study;
            part.P_Name = mem.m_Mem_Name;
            return part;
        }
    }
}
